package com.twu.biblioteca;

public class Movie extends Item {

    private final String director;
    private final Integer rating;

    public Movie(String title, int year, String director, Integer rating) {
        super(title, year);
        this.director = director;
        this.rating = rating;
    }

    public Movie(String title, int year, String director){
        this(title, year, director, null);
    }


    public String getDirector() {
        return director;
    }

    public Integer getRating() {
        return rating;
    }

}
